<?php
/**
 * 
 * Copyright (c) 2010, SRIT Stefan Riedel <info@srit.biz>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 * - Redistributions of source code must retain the above copyright notice, 
 *   this list of conditions and the following disclaimer.
 * - Redistributions in binary form must reproduce the above copyright notice, 
 *   this list of conditions and the following disclaimer in the documentation 
 *   and/or other materials provided with the distribution.
 * - Neither the name of the author nor the names of its 
 *   contributors may be used to endorse or promote products derived from 
 *   this software without specific prior written permission.
 *   
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * PHP version 5
 *
 * @author    Stefan Riedel <sr@srit.biz>
 * @copyright 2010 SRIT Stefan Riedel
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
 */
?>
<?php $this->pageTitle=Yii::app()->name . ' :: ' . Yii::t('crm', 'Kontakt - {customerCompanyName} {customerFirstname} {customerLastname}', array('{customerCompanyName}' => $customer->customers_company_name, '{customerFirstname}' => $customer->customers_firstname, '{customerLastname}' => $customer->customers_lastname)); ?>
<h3><?=Yii::t('crm', 'Kontakt - {customerCompanyName} {customerFirstname} {customerLastname}', array('{customerCompanyName}' => $customer->customers_company_name, '{customerFirstname}' => $customer->customers_firstname, '{customerLastname}' => $customer->customers_lastname))?></h3>
<div id="showTable">
	<?=CRMHtml::image(CRMHtml::imageUrl('edit.png'), Yii::t('crm', 'Kontakt bearbeiten'), array('title' => Yii::t('crm', 'Kontakt bearbeiten')))?> <?= Yii::t('crm', 'Kontakt bearbeiten') ?> <?=CRMHtml::image(CRMHtml::imageUrl('add_pages.png'), Yii::t('crm', 'Kontakt duplizieren'), array('title' => Yii::t('crm', 'Kontakt duplizieren')))?> <?= Yii::t('crm', 'Kontakt duplizieren') ?> <?=CRMHtml::image(CRMHtml::imageUrl('delete.png'), Yii::t('crm', 'Kontakt löschen'), array('title' => Yii::t('crm', 'Kontakt löschen')))?> <?= Yii::t('crm', 'Kontakt löschen') ?>
	<table border="0" cellspacing="2" cellpadding="0" class="ui-widget-content ui-corner-all">
		<tr class="state-default0">
			<th class="ui-widget-header"><?=Yii::t('crm', 'Firmenname')?></th>
			<td><?= CHtml::encode($customer->customers_company_name) ?></td>
			<th class="ui-widget-header"><?=Yii::t('crm', 'Name Ansprechhpartner')?></th>
	        <td><?= CHtml::encode($customer->customers_firstname) ?> <?= CHtml::encode($customer->customers_lastname) ?></td>
	        <th class="ui-widget-header"><?=Yii::t('crm', 'E-Mail-Adresse')?></th>
	        <td><?=CHtml::encode($customer->customers_email)?></td>			
		</tr>
		<tr class="state-default1">
			<th class="ui-widget-header"><?=Yii::t('crm', 'Telefon')?></th>
	        <td><?=CRMHtml::numberedLinkToCall(CHtml::encode($customer->customers_telephone), Yii::app()->dbConfig->asteriskAmt, CHtml::encode($customer->customers_area_code))?></td>
			<th class="ui-widget-header"><?=Yii::t('crm', 'Fax')?></th>
	        <td><?= CHtml::encode($customer->customers_fax) ?></td>
	        <th class="ui-widget-header"><?=Yii::t('crm', 'Handy')?></th>
	        <td><?=(!empty($customer->customers_mobile)) ? CRMHtml::numberedLinkToCall(CHtml::encode($customer->customers_mobile), Yii::app()->dbConfig->asteriskAmt) : ''?></td>
		</tr>
		<tr class="state-default0">
			
			<th class="ui-widget-header"><?=Yii::t('crm', 'Straße/ Hausnummer')?></th>
			<td><?= CHtml::encode($customer->customers_street) ?> <?= CHtml::encode($customer->customers_house_nr) ?></td>
			<th class="ui-widget-header"><?=Yii::t('crm', 'PLZ/Ort')?></th>
			<td><?= CHtml::encode($customer->customers_zip) ?>/<?= CHtml::encode($customer->customers_city) ?></td>
			<th class="ui-widget-header"><?=Yii::t('crm', 'Land')?></th>
			<td><?= CHtml::encode($customer->customers_country_code) ?></td>
		</tr>
	</table>
</div>
 <?php $this->beginWidget('littlecrm.web.widgets.CRMJqueryUiTabsWidget', array('name'=>'showCustomer', 'options' => array('disabled' => array(2)))); ?>
	<?php $this->beginWidget('littlecrm.web.widgets.CRMJqueryUiTabWidget', array('name'=>'data', 'title'=>Yii::t('crm', 'Tasks')))?>
		<?php $this->renderPartial('tabs/show/tasks', array('customer' => $customer)) ?>
	<?php $this->endWidget()?>
	<?php $this->beginWidget('littlecrm.web.widgets.CRMJqueryUiTabWidget', array('name'=>'test', 'title'=>Yii::t('crm', 'Test')))?>
		Hallo Stefan Riedel
	<?php $this->endWidget()?>
	<?php $this->beginWidget('littlecrm.web.widgets.CRMJqueryUiTabWidget', array('name'=>'accounting', 'title'=>Yii::t('crm', 'Rechnungswesen')))?>
	
	<?php $this->endWidget()?>
<?php $this->endWidget(); ?>